package com.sand.feign;

import com.sand.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import com.sand.dto.merchant.AddMerchant;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("juao-merchant")
public interface merchantFeign {

    @PostMapping("/merchant/add")
    ResponseResult<String> addMerchant(@RequestBody AddMerchant addMerchant);


    //查询权限
    @PostMapping("/merchant/permission")
    ResponseResult<Integer> permission(@RequestBody Integer id);


}
